<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Page</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
        }

        .login-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	    height: 45%;
            width: 65%;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
        }

        .form-group input {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }

        button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<script>
function  doClick() {
    const username = document.getElementById('username').value;
    const password = document.getElementById('password').value;

    // 简单的验证逻辑
    if (username.trim() === '' || password.trim() === '') {
        alert('Username and password cannot be empty!');
        return;
    }
     if (username.trim() === 'admin'  && password.trim() === 'admin') {
     	window.location.href = 'https://udify.app/chat/KnHoNcRXvmeaecx5';
    }else {
	    alert('Username or password is not right');
        return;
    }



}


</script>


<body>
    <div class="login-container">
        <form id="loginForm">
            <h2>Login</h2>
            <div class="form-group">
                <label for="username">Username:</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" required>
            </div>
            <button type="button" onclick="doClick()">Login</button>
        </form>
    </div>

   
    
</body>
</html>